import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/about',
    method: 'post',
    data
  })
}
export function update(data) {
  return request({
    url: '/about',
    method: 'put',
    data
  })
}

export function bannerID(data) {
  return request({
    url: '/banner',
    method: 'put',
    data
  })
}



export function removeabout(id) {
  return request({
    url: '/about/' + id,
    method: 'delete'
  })
}

export function aboutPage(data) {
  return request({
    url: '/about/list',
    method: 'get',
  })
}

export function getaboutById(id) {
  return request({
    url: '/about/' + id,
    method: 'get'
  })
}

export function myTop(id) {
  return request({
    url: '/news/top/' + id,  
    method: 'post',
    
  })
}


export function myBottom(id) {
  return request({
    url: '/news/cancelTop/' + id,  
    method: 'post',
    
  })
}





export function bannerTop(id) {
  return request({
    url: '/banner/top/' + id,  
    method: 'post',
    
  })
}


export function bannerBottom(id) {  
  return request({
    url: '/banner/cancelTop/' + id,  
    method: 'post',
    
  })
}




export function zxDel(id) {  
  return request({ 
    url: '/news/' + id,
    method: 'delete'
  })
}



export function bannerDel(id) {  
  return request({ 
    url: '/banner/' + id, 
    method: 'delete'
  })
}

